<?php namespace Summer\Hub;

use Backend\Classes\ListColumn;
use Lang;
use Model;

class ListVideoField
{


    public static function render($value, ListColumn $column, Model $record)
    {
        if($value){
            return '
                <video src="'.$value->path.'" controls="" style="max-height: 225px;">
                    <div class="panel media-player-fallback">Your browser doesn\'t support HTML5 video.</div>
                </video>
            ';
        }
    }

}
